package com.souvc.xstream;

/**
 * 作者类
 * 作者：souvc
 */
public class Author {

        private String name;

        public Author(String name) {
                this.name = name;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        @Override
        public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;

                Author author = (Author) o;

                return name != null ? name.equals(author.name) : author.name == null;

        }

        @Override
        public int hashCode() {
                return name != null ? name.hashCode() : 0;
        }

        @Override
        public String toString() {
                return "Author{" +
                        "name='" + name + '\'' +
                        '}';
        }
}